<?php
/**
 * 轻舟CMS(QZLOG)
 *
 * 一款基于PHP+MYSQL的开源内容管理系统，模板标签简单、可扩展性强，利于二次开发，轻松建站的首选利器。
 *
 * @package     QZLOG
 * @license     http://www.qzlog.com/license
 * @link        http://www.qzlog.com
 * @mail        info@shyohan.com
 * @since       Version 3.0
 * @copyright   Copyright (c) 2015 - 2017 上海优翰信息科技有限公司. All rights reserved.
 */

defined('IN_QZLOG') OR exit('QZLOG:No direct script access allowed!');

/**
 * 后台标签
 * @author LINK <link@shyouhan.com>
 */
class AdminTag extends Tag
{
    public $Tag = array(
        'AdminCss' => array('block' => 0, 'level' => 0),
        'toolbar' => array('block' => 0, 'level' => 0),
        'AdminJs' => array('block' => 0, 'level' => 0),
    );

    //H-UI.ADMIN CSS
    public function _AdminCss($attr, $content, &$hd)
    {
        return '<!--[if lt IE 9]>
    <script type="text/javascript" src="__STATIC__/Admin/lib/html5.js"></script>
    <script type="text/javascript" src="__STATIC__/Admin/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="__STATIC__/Admin/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/Admin/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/Admin/lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/Admin/lib/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/Admin/h-ui.admin/skin/blue/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/Admin/font_qzlog/iconfont.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/Admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="__STATIC__/Admin/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix(\'*\');</script>
    <![endif]-->';
    }

    //工具栏
    public function _toolbar($attr, $content, &$hd)
    {
        return '<a class="btn btn-secondary-outline radius r ml-5" style="line-height:1.6em;margin-top:3px" href="javascript: window.history.forward();" title="下一级" ><i class="Hui-iconfont">&#xe63d;</i></a> <a class="btn btn-secondary-outline radius r ml-5" style="line-height:1.6em;margin-top:3px" href="javascript:history.back();" title="返回上一级" ><i class="Hui-iconfont">&#xe67d;</i></a> <a class="btn btn-success-outline radius r ml-5" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>';
    }

    //H-UI.ADMIN JS
    public function _AdminJs($attr, $content, &$hd)
    {
        return '<script type="text/javascript" src="__STATIC__/Admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/js/qzlog.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/lib/jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="__STATIC__/Admin/lib/jquery.validation/1.14.0/validate-methods.js"></script>';
    }
}